<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>酒店床型</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/base.css" type="text/css" media="screen" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/page.css" type="text/css" media="screen" />
<script src="${pageContext.request.contextPath}/common/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/common/js/common.js" type="text/javascript"></script>
<script type="text/javascript">

function addBed(){
	var iframe = $(this.iframe).contents();	 
	iframe.find("#addsubmit").click();
	return false;
}
function editBed(){
	var iframe = $(this.iframe).contents();	 
	iframe.find("#editsubmit").click();
	return false;
}
</script>
</head>
<body>
<div id="main_frame">	
	<form id="form" method="post" action="bedType!sort.action">
	
	<div id="pagemenu"><a href="javascript:void();" title="酒店床型"  class="selected">酒店床型</a>|<a href="javascript:void(0);" onclick="parent.mnipotent({'linkurl':'panel/hotel/bedType/add.jsp','title':'添加酒店床型','w':580,'h':330,'sucfun':addBed});" title="添加床型">添加床型</a></div>
	<div class="listbox">	
	<table class="listtab"  align="center">
		<thead>
			<tr>
				<th width="42"><span class="mline"><input type="checkbox" name="checkbox" id="checkbox" onclick="selectall(this);" /></span></th>
				<th width="60"><span class="mline">排序</span></th>
				<th class="tl pdl10"><span class="mline">酒店床型</span></th>
				<th width="120">管理操作</th>
			</tr>
		</thead>
		<tbody>			
			<s:iterator var="x" value="bedTypeList">			
			<tr>				
				<td><input type="checkbox" name="checkbox" value="${x.id}" class="ckbox"/></td>
				<td><input type="text" class="tx2" name="sort" value="${x.sort}"/></td>
				<td class="tl pdl10">${x.name}</td>
				<td><a href="javascript:void(0);" onclick="parent.mnipotent({'linkurl':'panel/hotel/bedType/bedType!findInfoById.action?id=<s:property value="id"/>','title':'修改酒店床型','w':580,'h':330,'sucfun':editBed});" title="修改酒店床型" class="abg">修改</a><a href="bedType!deleteByIds.action?ids=${x.id}" title="删除" onclick="return delete_confirm();" class="abg">删除</a></td>
			</tr>
		  </s:iterator>	
		</tbody>
	</table>
	</div>
	</form>
</div>
<div id="bottombar">
	<div class="fl"><span><a onclick="selectall(true);" href="javascript:void(0);">全选</a>/<a onclick="selectall(false);" href="javascript:void(0);">取消</a></span><a href="javascript:void(0);" onclick="remove('bedType!deleteByIds.action');" title="删除" class="addsource">删除</a><a href="javascript:void(0);"  onclick="$('#form').submit();" title="排序" class="addsource">排序</a><a href="javascript:location=location;"  class="addsource">刷新</a></div>
	<div class="fr listpage">${pagination}</div>
</div>
</body>
</html>